#pragma once
#include "../../../gangia_gui.h"
#pragma once
#include "gUsbLib.h"

class gUsbAmpDiag : 	public gUsbAmpDialog
{
public:
#ifdef HAVE_GTEC_USB_LIBRARY
	gUsbAmpDiag(wxWindow *parent, int *freq, UCHAR *nCh, UCHAR* _channelsToAcquire, gUSBamp::CHANNEL* _bipolarSettings, gUSBamp::REF* _commonReference, gUSBamp::GND* _commonGround,int *filter, int *nFilter, int numfilt, wxString *FilterString, int nnumfilt, wxString *nFilterString, gUSBamp::SCALE *scale);
	~gUsbAmpDiag(void);
	DECLARE_EVENT_TABLE();

	void OnExit (wxCommandEvent& event);
	void OnSave (wxCommandEvent& event);
	void OnApplyCh (wxCommandEvent& event);
	void OnApllySpec (wxCommandEvent& event);
	void OnSet (wxCommandEvent& event);
	void OnChoice(wxCommandEvent& event);
	void CheckCh(void);
	int *pFreq;
	UCHAR *pnCh;
	UCHAR *p_channelsToAcquire;
	gUSBamp::CHANNEL* p_bipolarSettings;
	gUSBamp::REF* p_commonReference; 
	gUSBamp::GND* p_commonGround;
	gUSBamp::PSCALE pScale;
	int *pFilter;
	int *pnFilter;
	int pnumFilter,pnnumFilter;
	wxString *StringFilter;
	wxString *nStringFilter;
	int toAdd;
	int ntoAdd;
#else
	gUsbAmpDiag(wxWindow *parent):gUsbAmpDialog(parent)
	{
	};
	~gUsbAmpDiag(void){};
#endif
};

